<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.view.*" %>
<%@ page import="java.security.Principal" %>
<%@ page import="com.conversationboard.config.*" %>
<%@ page import="com.conversationboard.site.*" %>
<%@ page import="com.conversationboard.authenticator.AuthenticationCookie"%>
<%@ page import="com.conversationboard.tree.Folders"%>
<%@ page import="com.conversationboard.tree.Node"%>
<%@ page import="java.util.List"%>

<% 
    Principal principal = request.getUserPrincipal();

	if (!Configuration.getInstance().isSupportFileUploads()) {
		return;
	}
	
	request.setAttribute("boardId", request.getParameter("boardid"));
	
%>


<%@page import="com.conversationboard.controller.ipaddress.IPAddress"%><html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta name="ROBOTS" content="NOINDEX"></meta>
	<title>Upload a File</title>
	<link rel="stylesheet"title="Conversation Board" type="text/css" href="${contextPath}/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
</head>

<body>

	<div class="headingblock">
		<h1>Upload a File</h1>
	</div>

	<div class="mainblock">
		<form class="formsection" action="<%= Configuration.getInstance().getRoot() %>/Pages/upload.jsp?boardid=${boardId}" method="post" enctype="multipart/form-data">

			<p>To link to uploaded files, please upload them on this page - once uploaded, you will be given a link to paste inside your
			   post or thread, which will link to the uploaded file or picture.</p>
		
			<p>Please select a file and click the upload button:</p>

			<br /><br />
		
			<div class="formsection"><input type="file" name="fileName" /><br /></div>
			
			<br /><br />
			
			<input type="submit" name="button" value="    Upload My Selected File    " />
		</form>
	</div>
	
	<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
	<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 

</body>
</html>
